<admintpl file="header"/>
<link rel="stylesheet" href="__PUBLIC__/css/jquery.datetimepicker.css">
<link rel="stylesheet" href="__PUBLIC__/css/main.css">
<link rel="stylesheet" href="__PUBLIC__/css/act_info.css">
<script src="__PUBLIC__/js/uploadify/jquery2.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/uploadify/jquery.uploadify.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/jquery.form.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/js/uploadify/uploadify.css">
<script src="__PUBLIC__/js/laydate.js"></script>
<script src="__PUBLIC__/js/My97DatePicker/WdatePicker.js"></script>
<style type="text/css">
    .hidden {
        display: none;
    }
    label{cursor:default}
</style>
</head>
<body>

<div class="manage">
    <span><a href="{:U('Special/main')}">活动管理</a></span><span><a href="#">运营管理</a></span>
</div>

<div class="act_main"><a href="{:U('Special/main')}">活动管理</a>
        <span class="act-nav">
                <a href="{:U('Special/main')}">专题活动</a>
        </span>
</div>
<div class="wrap">
    <div class="act_title">
        <div class="act_left">
            <span class="act_all"><a href="#" class="rehref" style="color: #000">添加活动 -
                专题活动</a></span>
        </div>
    </div>
    <div class="form-horizontal Jactadd">
        <div class="control-group">
            <label class="control-label act-info">活动信息……</label>

            <div class="controls act_right text-center">
                <ul>
                    <li><a href="{:U('Special/main')}">> <span>返回专题活动</span> </a>
                    </li>
                </ul>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label ">活动标题</label>
            <div class="controls">
                <input type="text" name="Name" placeholder="请添加活动标题" maxlength="20">
                <span class="form-required">*</span>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">活动图片</label>

            <div class="controls">
                <div id="actcoverImgInfo">
                    <form id="actimgForm" action="{:U('Special/uploadify')}" method="post"
                          enctype="multipart/form-data">
                        <input type="file" id="file_upload" name="coverImg" accept="image/*"
                               onChange="actcoverImgChange(this);">
                        <span id="coverActImg"></span>
                    </form>

                    <input type="hidden" name="ShopPic" id="image" class="image">
                    <span class="form-required requied-res">*</span>
                </div>
            </div>

        </div>

        <div class="control-group">
            <label class="control-label ">预定信息显示</label>
            <div class="controls">
               <input type="radio" name="BookDate" value="1" checked> 默认显示<br/><br/>
                <input type="radio" name="BookDate" value="2"> 指定日期
                <input placeholder="选择指定日期" class="sureDate" disabled type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true,minDate:now})">
            </div>
        </div>
        <div class="control-group">
            <label class="control-label ">更多餐厅设置</label>
            <div class="controls">
                <select class="more-shop">
                    <option value="0">请选择</option>
                    <option value="1">跳转到排队预约列表</option>
                </select>

            </div>
        </div>

        <div class='businessInfo'>
            <div class="control-group">
                <label class="control-label businfo">商家信息……（<span class="busnum">0</span>个商家）</label>
            </div>
            <span style="color:red;font-size: 16px;">填写排序数字请不要重复</span>
            <div class="Jshoplist">

            </div>
            <div class="controls">
                <button type="button" class="btn btn-info Jaddshoplist">+添加商家</button>
            </div>
        </div>

        <div class='specialInfo'>
            <div class="control-group">
                <label><span class="businfo">其他专题入口链接（<span class="specNum">0</span>个商家）</span>最多设置6个</label>
            </div>
            <div class="Jspeclist">

            </div>
            <div class="controls">
                <button type="button" class="btn btn-info JaddSpeciallist">+添加专题</button>
            </div>
        </div>

        <div class="form-actions">
            <button type="submit" class="btn btn-primary Jsubmit checkSubmit">保存</button>
        </div>
    </div>
</div>
<script type="text/javascript">
    var url = "{:U('Special/addHandle')}";
    var getShopUrl = "{:U('Special/getShopInfo')}";
    var fileUrl = "{:U('Special/uploadshoppic')}";
    var ajaxPic = "{:U('Special/uploadshoppic')}";
    var coverBigImg = "{:U('Special/uploadBigImg')}";
    var coverSmallImg = "{:U('Special/uploadSmallImg')}";
    var viewShop = "{:U('Special/view')}";
    var getShopService = "{:U('Special/getShopService')}";

    $(function () {
        $('.rehref').click(function () {
            location.reload();
        })

        $('#onlinetime').click(function(){
            laydate({elem: '#onlinetime',format: 'YYYY-MM-DD',istime: false});
        });
    })

</script>
<script src="__PUBLIC__/js/common.js"></script>
<script src="__PUBLIC__/js/artDialog/artDialog.js"></script>
<script src="__PUBLIC__/js/act.js"></script>
</body>
</html>